.class public Lcom/burstly/lib/component/networkcomponent/burstly/html/StatisticsSender;
.super Ljava/lang/Object;
.source "StatisticsSender.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/burstly/lib/component/networkcomponent/burstly/html/StatisticsSender$1;,
        Lcom/burstly/lib/component/networkcomponent/burstly/html/StatisticsSender$StatisticsSenderBuilder;
    }
.end annotation


# static fields
.field public static final MRAID_EVENT_TYPE:Ljava/lang/String; = "mraid"

.field public static final ORMMA_EVENT_TYPE:Ljava/lang/String; = "ormma"

.field private static final REQUEST_TEMPLATE:Ljava/lang/String; = "http://{0}/Services/TrackStats.svc?zid={1}&crid={2}&geo=&pgt={3}&evt={4}"


# instance fields
.field private mBurstlyViewId:Ljava/lang/String;

.field private mCreativeId:Ljava/lang/String;

.field private mEventType:Ljava/lang/String;

.field private mZoneId:Ljava/lang/String;


# direct methods
.method private constructor <init>()V
    .locals 0

    .prologue
    .line 163
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 164
    return-void
.end method

.method synthetic constructor <init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/StatisticsSender$1;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 29
    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/StatisticsSender;-><init>()V

    return-void
.end method

.method static synthetic access$102(Lcom/burstly/lib/component/networkcomponent/burstly/html/StatisticsSender;Ljava/lang/String;)Ljava/lang/String;
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 29
    iput-object p1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/StatisticsSender;->mBurstlyViewId:Ljava/lang/String;

    return-object p1
.end method

.method static synthetic access$202(Lcom/burstly/lib/component/networkcomponent/burstly/html/StatisticsSender;Ljava/lang/String;)Ljava/lang/String;
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 29
    iput-object p1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/StatisticsSender;->mCreativeId:Ljava/lang/String;

    return-object p1
.end method

.method static synthetic access$302(Lcom/burstly/lib/component/networkcomponent/burstly/html/StatisticsSender;Ljava/lang/String;)Ljava/lang/String;
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 29
    iput-object p1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/StatisticsSender;->mEventType:Ljava/lang/String;

    return-object p1
.end method

.method static synthetic access$402(Lcom/burstly/lib/component/networkcomponent/burstly/html/StatisticsSender;Ljava/lang/String;)Ljava/lang/String;
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 29
    iput-object p1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/StatisticsSender;->mZoneId:Ljava/lang/String;

    return-object p1
.end method

.method private createUrl(Ljava/lang/String;)Ljava/lang/String;
    .locals 4
    .parameter "event"

    .prologue
    .line 191
    const-string v0, "http://{0}/Services/TrackStats.svc?zid={1}&crid={2}&geo=&pgt={3}&evt={4}"

    const/4 v1, 0x5

    new-array v1, v1, [Ljava/lang/Object;

    const/4 v2, 0x0

    invoke-static {}, Lcom/burstly/lib/constants/UriConstants;->getInstance()Lcom/burstly/lib/constants/UriConstants;

    move-result-object v3

    invoke-virtual {v3}, Lcom/burstly/lib/constants/UriConstants;->getPrimaryHost()Ljava/lang/String;

    move-result-object v3

    aput-object v3, v1, v2

    const/4 v2, 0x1

    iget-object v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/StatisticsSender;->mZoneId:Ljava/lang/String;

    aput-object v3, v1, v2

    const/4 v2, 0x2

    iget-object v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/StatisticsSender;->mCreativeId:Ljava/lang/String;

    aput-object v3, v1, v2

    const/4 v2, 0x3

    iget-object v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/StatisticsSender;->mEventType:Ljava/lang/String;

    aput-object v3, v1, v2

    const/4 v2, 0x4

    aput-object p1, v1, v2

    invoke-static {v0, v1}, Ljava/text/MessageFormat;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method private doSendEvent(Ljava/lang/String;)V
    .locals 2
    .parameter "event"

    .prologue
    .line 181
    invoke-direct {p0, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/StatisticsSender;->createUrl(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/StatisticsSender;->mBurstlyViewId:Ljava/lang/String;

    invoke-static {v0, v1}, Lcom/burstly/lib/network/request/RequestManager;->makeTrackEventRequest(Ljava/lang/String;Ljava/lang/String;)Lcom/burstly/lib/network/request/AbortableAsyncTask;

    .line 182
    return-void
.end method


# virtual methods
.method public sendEvent(Ljava/lang/String;)V
    .locals 0
    .parameter "event"

    .prologue
    .line 172
    invoke-direct {p0, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/StatisticsSender;->doSendEvent(Ljava/lang/String;)V

    .line 173
    return-void
.end method
